package com.cqqs;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动类
 *
 * @author mjxie
 * @date 2022/09/21
 */
@SpringBootApplication(scanBasePackages = {"com.cqqs"})
@EnableTransactionManagement
@MapperScan("com.cqqs.mapper*")
@EnableKnife4j
public class ServiceTechnologyApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(ServiceTechnologyApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(ServiceTechnologyApplication.class, args);
    }

}
